﻿using S8_DataEntity;

namespace S8_DBAccess
{
    /// <summary>
    /// 用户表数据访问层类
    /// </summary>
    public class UserDBAccess
    {
       // private string connStr = "Server=.\\SQLEXPRESS;DataBase=tz1989_fw;Trusted_Connection=true;";
        /// <summary>
        /// 获取用户列表
        /// </summary>
        /// <returns></returns>
        public List<Base_User> GetList()
        {
            using (var context = new TZ1989DBContext(S8_Common.Config.DBConn))
            {
                var list = context.Base_User.ToList();
                return list;
            }
        }
    }
}
